package com.storm.utils;

import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileSaver {

	
	public static void main(String[] args){
//		byte test = new byte[256];
//		for(int i=0;i<256;i++){
//			test[i] = new Byte(5b);
//		}
		File file = new File("D:\\test\\a.raw");
//		if(!file.exists()){
			try {
				file.createNewFile();
				DataOutputStream out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream("D:\\test\\a.raw")));
				for(int i=0;i<256;i++){
					for(int j=0;j<256;j++){
						byte t = (byte)j;
						System.out.print(t);
						System.out.print(" ");
						out.write(1000);
					}
					System.out.println();
				}
				out.close();
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
//		}
	}
}
